Skip to content

Bug 2034168 explicit permission for file access#44328

Open
rebloor wants to merge 4 commits into
mdn:mainfrom
rebloor:Bug-2034168-explicit-permission-for-file-access
Open

Bug 2034168 explicit permission for file access#44328
rebloor wants to merge 4 commits into
mdn:mainfrom
rebloor:Bug-2034168-explicit-permission-for-file-access

Conversation

@rebloor

@rebloor rebloor commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Description

Addresses the dev-doc-needed requirements of Bug 2034168 Add explicit permission for file:-access and implement extension.isAllowedFileSchemeAccess()

Changes include:

  • a release note
  • update to extension.isAllowedFileSchemeAccess() to remove the note about being returned false in Firefox (this and new behavior details now in BCD). Other tidy up edits.
  • update to extension to note change in permission triggers for isAllowedFileSchemeAccess and update permission details regarding private windows for isAllowedIncognitoAccess.
  • note on devtools.inspectedWindow.eval() that from Firefox 153, calling eval() on a file:// URL requires the user to grant file scheme access,

Related issues and pull requests

Relating BCD changes in mdn/browser-compat-data#29776

@rebloor rebloor requested review from Rob--W and bacharakis June 1, 2026 17:55
@rebloor rebloor self-assigned this Jun 1, 2026
@rebloor rebloor requested review from a team as code owners June 1, 2026 17:55
@rebloor rebloor requested review from pepelsbey and removed request for a team June 1, 2026 17:55
@rebloor rebloor added the Content:WebExt WebExtensions docs label Jun 1, 2026
@github-actions github-actions Bot added Content:Firefox Content in the Mozilla/Firefox subtree size/m [PR only] 51-500 LoC changed labels Jun 1, 2026
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (4 pages)

External URLs (1)

URL: /en-US/docs/Mozilla/Firefox/Releases/153
Title: Firefox 153 release notes for developers (Nightly)

(comment last updated: 2026-06-04 23:14:18)

@pepelsbey pepelsbey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you 🙂

Not sure if it’s a technical review or an editorial one (it would be good to separate those), but I have a few suggestions.

Comment thread files/en-us/mozilla/add-ons/webextensions/intercept_http_requests/index.md Outdated
Comment thread files/en-us/mozilla/add-ons/webextensions/intercept_http_requests/index.md Outdated
Comment thread files/en-us/mozilla/firefox/releases/153/index.md Outdated
Comment thread files/en-us/mozilla/firefox/releases/153/index.md Outdated
Comment thread files/en-us/mozilla/add-ons/webextensions/intercept_http_requests/index.md Outdated

@rebloor rebloor Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pepelsbey thanks for the feedback. However, this file shouldn't be in this PR, it's in Add use of declarativeNetRequest to the "Intercept HTTP requests" guide #44301 I'm addressed your feedback there and will be removing this file from the PR shortly

@github-actions github-actions Bot added size/s [PR only] 6-50 LoC changed and removed size/m [PR only] 51-500 LoC changed labels Jun 4, 2026
@rebloor rebloor requested a review from pepelsbey June 4, 2026 23:13
- : Retrieves the state of the extension's access to tabs opened in "private browsing" mode (as determined by the user-controlled '_Run in Private Windows_' option in the extension's permissions).
- {{WebExtAPIRef("extension.isAllowedFileSchemeAccess()")}}
- : Retrieves the state of the extension's access to the `file://` scheme (as determined by the user-controlled '_Allow access to File URLs_' checkbox).
- : Retrieves the state of the extension's access to the `file://` scheme (as determined by the user-controlled '_Access local files on your computer_' option in the extension's permissions).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Firefox-specific. The original one was Chrome-specific.

Can we somehow mention both? That helps devs to relate different concepts in different browsers to each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Firefox Content in the Mozilla/Firefox subtree Content:WebExt WebExtensions docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants